#**************************************** URALS BOMBER PROJECT *******************************************
#****************************Concept by Kevin McCarthy, Scripting by PhilK *******************************
event = {
	id = 9500500
	random = no
	country = GER
	
	trigger = {
		random = 50 
		ai = yes
		#technology = 4400	# Level - Assembly Mass Production
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 15
	deathdate = { day = 30 month = november year = 1937 }

	action_a = {
		command = { type = start_research which = 9107 } #Basic Heavy Bomber - project
		command = { type = sleepevent which = 9500501 }
	}
	action_b = {
		command = { }
	}
}

event = { #*********************** Second opportunity to develop the bomber ************************
	id = 9500501
	random = no
	country = GER
	
	trigger = {
		random = 50
		ai = yes
		technology = 2300	# Level - Basic Tanks
		technology = 14300	# Level - Self-Propelled Artillery Pieces
		technology = 4400	# Level - Assembly Mass Production
		OR = {
			technology = 9200	# Level - Basic Ordinance and Equipment (Heavy Aircraft)
			technology = 10200	# Level - Early War Projects (Light Aircraft)
		}
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1937 } 
	offset = 15
	deathdate = { day = 30 month = november year = 1940 }

	action_a = {
		command = { type = start_research which = 9107 } #Basic Heavy Bomber - project
	}
	action_b = {
		command = { type = sleepevent which = 9500502 }
		command = { type = sleepevent which = 9500503 }
		command = { type = sleepevent which = 9500504 }
		command = { type = sleepevent which = 9500505 }
		command = { type = sleepevent which = 9500506 }
	}
}

event = {
	id = 9500502
	random = no
	country = GER
	
	trigger = {
		ai = yes
		technology = 9107  		#Basic Heavy Bomber - project
		NOT = { technology = 9006 } 	#Basic Heavy Bomber Airframe
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = march year = 1937 } 
	offset = 15
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = start_research which = 9006 }  #Basic Heavy Bomber Airframe
	}
}

event = {
	id = 9500503
	random = no
	country = GER

	trigger = {
		ai = yes
		technology = 9006  		#Basic Heavy Bomber Airframe
		NOT = { technology = 9010 } 	#Basic Heavy Bomber Prototype Tests
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = march year = 1938 } 
	offset = 15
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = start_research which = 9010 }  #Basic Heavy Bomber Prototype Tests
	}
}

event = {
	id = 9500504
	random = no
	country = GER

	trigger = {
		ai = yes
		random = 33
		technology = 9010 		#Basic Heavy Bomber Prototype Tests
		technology = 14995		#7,7mm+ MGs
		technology = 14974		#20mm Cannons
		NOT = { technology = 9108 } 	#Basic Strategic Bomber
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = march year = 1939 } 
	offset = 15
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = start_research which = 9108 }  #Basic Strategic Bomber
	}
}

#******************** Following event provides instant minimal bomber production for 1939 ****************************
event = {
	id = 9500505
	random = no
	country = GER

	trigger = {
		ai = yes
		technology = 9108 		#Basic Strategic Bomber
		NOT = { exists = POL }
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1939 } 
	offset = 30
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = build_division which = strategic_bomber }
		command = { type = build_division which = strategic_bomber }
		command = { type = build_division which = strategic_bomber }  
	}
}

#***** Following events will install new AI block for greater bomber research and start minimal bomber production ********
event = {
	id = 9500506
	random = no
	country = GER

	trigger = {
		ai = yes
		event = 9500504
		event = 9500512
		technology = 9108 #Basic Strategic Bomber
		war = { country = GER country = SOV }
		OR = {
			event = 10002	#various Barbarossa AI loads
			event = 10003
			event = 9500511
		}
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = march year = 1942 } 
	offset = 30
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = ai which = "core_GER_Junkers89a.ai" }  #AI block for research and military production
	}
}

event = {
	id = 9500507
	random = no
	country = GER

	trigger = {
		ai = yes
		war = { country = GER country = USA }
		OR = {
			event = 5308 # USSR - The Bitter Peace
			event = 5309 # USSR - The Bitter Peace
			event = 5315 # Victory in the East
			event = 5334 # Victory in the East
			NOT = { exists = SOV }
		}
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = may year = 1942 } 
	offset = 30
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = ai which = "core_GER_Junkers89b.ai" }  #AI block for research and military production
	}
}


#*********** Following event determines Wever's fate and has an 80% chance to kill project event chain *****************

event = {
	id = 9500508
	random = no
	country = GER

	trigger = {
		ai = yes
		random = 80
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 3 month = may year = 1936 } 
	
	action_a = {
		command = { type = sleepevent which = 9500500 }
		command = { type = sleepevent which = 9500501 }
		command = { type = sleepevent which = 9500502 }
		command = { type = sleepevent which = 9500503 }
		command = { type = sleepevent which = 9500504 }
		command = { type = sleepevent which = 9500505 }
		command = { type = sleepevent which = 9500506 }
	}
}


#************************************ END OF BOMBER CHAIN ****************************************

# New events for Yugoslav region, for v0.71+
# Starting from 752417
# Comments: By Zerli, for CORE v0.7rc10
# Events 752417-752423 added
# Events 752398, 752399 had text changed and action_a, action_b changed.
# Events 752424-752429, Oil in Croatia, added

##############################################################################
# Banning of Croatian Peasant's Party (HSS)
# By Zerli
##############################################################################

event = { 
	id = 752417
	random = no
	country = CRO

	trigger = {
			event = 752396 # Pavelic returns
			headofgovernment = 30003 # Pavelic
			}


	name = CEVTNAME_752417
	desc = CEVTDESC_752417
	style = 0
	
	date = { day = 2 month = january year = 1936 }
	offset = 58 
	deathdate = { day = 29 month = october year = 1943 }	

	action_a = {
			name = CEVTACTA_752417
			command = { type = dissent value = 2 } # HSS is still popular
			command = { type = supplies value = 1000 }
			}
	action_b = {
			name = CEVTACTB_752417
			command = { type = dissent value = 1 } # Our supporters are angry
			}


	}


event = { 
	id = 752399
	random = no
	country = ITA

	name = CEVTNAME_752399
	desc = CEVTDESC_752399
	style = 0
	
	action_a = {
			name = CEVTACTA_752399
			command = { type = make_puppet which = CRO }
			command = { type = dissent value = -5 }  # Italy gets Dalmatia, this pleases the fascists
			}
	}

event = { 
	id = 752418
	random = no
	country = HUN

	trigger = {
			event = 752398 # Rome Agreement
			}


	name = CEVTNAME_752418
	desc = CEVTDESC_752418
	style = 0
	
	action_a = {
			name = CEVTACTA_752418
			command = { type = dissent value = -2 } # Our nationalists are pleased
			command = { type = supplies value = 400 } # Seized supplies and other goods
			}

	}


#########################################################################
# Anti-bolshevik volunteers 
# By Zerli, original idea by Ivan Bajlo
#########################################################################

event = { 
	id = 752419
	random = no
	country = CRO

	trigger = {
			exists = GER
			exists = SOV
			war = { country = GER country = SOV }
			alliance = { country = GER country = CRO }
			}

	name = CEVTNAME_752419
	desc = CEVTDESC_752419
	style = 0
	
	date = { day = 2 month = january year = 1936 }
	offset = 119
	deathdate = { day = 29 month = december year = 1943 }

	action_a = {
			name = CEVTACTA_752419
			command = { type = manpowerpool value = 10 }
			}
	}


#########################################################################
# Eastern Front Legion
# By Zerli, original idea by Ivan Bajlo
#########################################################################

event = { 
	id = 752420
	random = no
	country = CRO

	trigger = {
			exists = GER
			exists = SOV
			war = { country = GER country = SOV }
			alliance = { country = GER country = CRO }
			steel = 600
			}

	name = CEVTNAME_752420
	desc = CEVTDESC_752420
	style = 0
	
	date = { day = 15 month = january year = 1942 }

	action_a = {
			name = CEVTACTA_752420
			command = { type = manpowerpool  value = -6 }
			command = { type = dissent value = 2 }
			}
	action_b = {
			name = CEVTACTB_752420
			command = { type = dissent value = -2 }
			command = { type = trigger which = 752421 }
			}
	}

event = { 
	id = 752421
	random = no
	country = CRO

	name = CEVTNAME_752421
	desc = CEVTDESC_752421
	style = 0
	
	action_a = {
			name = CEVTACTA_752421
			command = { type = steelpool value = -500 }
			command = { type = trigger which = 752422 }
			}
	}

event = { 
	id = 752422
	random = no
	country = GER

	name = CEVTNAME_752422
	desc = CEVTDESC_752422
	style = 0
	
	action_a = {
			name = CEVTACTA_752422
			command = { type = steelpool value = 400 }
			}
	}


#########################################################################
#  Third government of NDH (originally by Ivan Bajlo)
#########################################################################

event = { 
	id = 752423
	random = no
	country = CRO

	trigger = {
			event = 752401
			}

	name = CEVTNAME_752423
	desc = CEVTDESC_752423
	style = 0
	
	date = { day = 3 month = january year = 1936 }
	offset = 200
	deathdate = { day = 29 month = october year = 1944 }	

	action_a = {
			name = CEVTACTA_752423
			command = { type = armamentminister which = 30004 }  # Vilko Begic
			command = { type = ministerofsecurity which = 30048 } # Ante Niksic
			}

	#This ain't democracy so you can have a pick!
	}

#########################################################################
#  Oil production in Croatia for Germany
#########################################################################

event = { 
	id = 752424
	random = no
	country = GER

	trigger = {
			supplies = 2800
			steel = 800
			coal = 800
			OR = {
				AND = {
					exists = CRO
					alliance = { country = GER country = CRO }
					control = { province = 624 data = CRO } # Zagreb
					}
				control = { province = 624 data = GER } # Zagreb
				}
			}

	name = CEVTNAME_752424
	desc = CEVTDESC_752424
	style = 0
		
	date = { day = 3 month = january year = 1936 }
	offset = 26
	deathdate = { day = 29 month = march year = 1942 }	

	action_a = {
			name = CEVTACTA_752424
			command = { type = supplies value = -2500 } 
			command = { type = manpowerpool value = -10 } # Manpower diverted to infrastructure work
			command = { type = steelpool value = -500 } # Metal for new oil wells
			command = { type = coalpool value = -500 } # Energy used in their production
			command = { type = infrastructure which = 624 value = 10 }
			}

	action_b = {
			name = CEVTACTB_752424
			command = { type = sleepevent which = 752425 }
			command = { type = sleepevent which = 752426 }
			command = { type = sleepevent which = 752427 }
			command = { type = sleepevent which = 752428 }
			command = { type = sleepevent which = 752429 }
			}
	}

event = { 
	id = 752425
	random = no
	country = GER

	trigger = {
			event = 752424
			supplies = 1200
			steel = 300
			coal = 300
			OR = {
				AND = {
					exists = CRO
					alliance = { country = GER country = CRO }
					control = { province = 624 data = CRO } # Zagreb
					}
				control = { province = 624 data = GER } # Zagreb
				}
			}

	name = CEVTNAME_752425
	desc = CEVTDESC_752425
	style = 0
		
	date = { day = 3 month = may year = 1942 }
	offset = 7
	deathdate = { day = 29 month = september year = 1942 }	

	action_a = {
			name = CEVTACTA_752425
			command = { type = supplies value = -1000 } 
			command = { type = manpowerpool value = -5 } # Manpower diverted to infrastructure work
			command = { type = steelpool value = -200 } # Metal for new oil wells
			command = { type = coalpool value = -200 } # Energy used in their production
			command = { type = oilpool value = 200 } # Oil produced so far
			}

	action_b = {
			name = CEVTACTB_752425
			command = { type = oilpool value = 200 } # Oil produced so far
			command = { type = manpowerpool value = 15 } # Workers released from the project
			command = { type = steelpool value = 200 } # Reclamation of supplies and equipment
			command = { type = supplies value = 500 }
			command = { type = sleepevent which = 752426 }
			command = { type = sleepevent which = 752427 }
			command = { type = sleepevent which = 752428 }
			command = { type = sleepevent which = 752429 }
			}
	}

event = {
	id = 752426
	random = no
	country = GER

	trigger = {
			event = 752425
			OR = {
				AND = {
					exists = CRO
					alliance = { country = GER country = CRO }
					control = { province = 624 data = CRO } # Zagreb
					}
				control = { province = 624 data = GER } # Zagreb
				}
			}

	name = CEVTNAME_752426
	desc = CEVTDESC_752426
	style = 0

	date = { day = 3 month = may year = 1943 }
	offset = 7
	deathdate = { day = 29 month = september year = 1943 }

	action_a = {
			name = CEVTACTA_752426
			command = { type = oilpool value = 2500 } # Oil produced this year
			}

	}

event = {
	id = 752427
	random = no
	country = GER

	trigger = {
			event = 752425
			OR = {
				AND = {
					exists = CRO
					alliance = { country = GER country = CRO }
					control = { province = 624 data = CRO } # Zagreb
					}
				control = { province = 624 data = GER } # Zagreb
				}
			}

	name = CEVTNAME_752427
	desc = CEVTDESC_752427
	style = 0

	date = { day = 3 month = may year = 1944 }
	offset = 7
	deathdate = { day = 29 month = september year = 1944 }

	action_a = {
			name = CEVTACTA_752427
			command = { type = oilpool value = 3500 } # Oil produced this year
			}

	}

event = {
	id = 752428
	random = no
	country = GER

	trigger = {
			event = 752425
			OR = {
				AND = {
					exists = CRO
					alliance = { country = GER country = CRO }
					control = { province = 624 data = CRO } # Zagreb
					}
				control = { province = 624 data = GER } # Zagreb
				}
			}

	name = CEVTNAME_752428
	desc = CEVTDESC_752428
	style = 0

	date = { day = 3 month = may year = 1945 }
	offset = 7
	deathdate = { day = 29 month = september year = 1945 }

	action_a = {
			name = CEVTACTA_752428
			command = { type = oilpool value = 3500 } # Oil produced this year
			}

	}

event = {
	id = 752429
	random = no
	country = GER

	trigger = {
			event = 752425
			OR = {
				AND = {
					exists = CRO
					alliance = { country = GER country = CRO }
					control = { province = 624 data = CRO } # Zagreb
					}
				control = { province = 624 data = GER } # Zagreb
				}
			}

	name = CEVTNAME_752429
	desc = CEVTDESC_752429
	style = 0

	date = { day = 3 month = may year = 1946 }
	offset = 7
	deathdate = { day = 29 month = september year = 1946 }

	action_a = {
			name = CEVTACTA_752429
			command = { type = oilpool value = 3500 } # Oil produced this year
			}

	}

#########################################################################
#  First Session of Croatian national Parliament
#########################################################################

event = {
	id = 752430
	random = no
	country = CRO

	trigger = {
			event = 752396 # Return of Ante Pavelic
			}

	name = CEVTNAME_752430
	desc = CEVTDESC_752430
	style = 0

	date = { day = 3 month = may year = 1937 }
	offset = 350
	deathdate = { day = 29 month = september year = 1943 }

	action_a = {
			name = CEVTACTA_752430
			command = { type = dissent value = -1 }
			command = { type = influence value = 1 }
			command = { type = alignment which = democratic value = 10 }
			}
	}



############################
#  GERMAN AI 
############################

#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# GERMAN STRATEGY CHANGES >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


event = {		# Follows core_GER_Guderian.ai for panzer production
	id = 9500510
	random = no
	country = GER
	
	trigger = {
		ai = yes
		event = 1510084		#core_GER_38.ai
	#	OR = {
	#		technology = 2316	#Basic Medium Tank (37mm+)
	#		technology = 2105	#Basic Light Tank (20mm+)
	#	}
	}

	name = AI_EVENT 
	desc = ""
	style = 0

	date = { day = 20 month = december year = 1937 } 
	offset = 1
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = ai which = "core_GER_Panzers.ai" }
	}
	
}

event = {
	id = 9500511
	random = no 
	country = GER
	
	trigger = {
		random = 66
		ai = yes
		control = { province = 527 data = GER } # Germany controls Paris
		control = { province = 643 data = GER } # Germany controls Warszawa
		exists = SOV
		NOT = { alliance = { country = SOV country = GER } } # Unholy Alliance
	}

	name = AI_EVENT
	desc = ""
	style = 0	
	
	date = { day = 15 month = june year = 1941 }
	offset = 15
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		command = { type = ai which = "core_GER_Barbarossa.ai" }
		command = { type = sleepevent which = 10003 } # other Barbarossa load
		command = { type = sleepevent which = 10002 } # other Barbarossa load
	}

}

event = {		# Loaded upon availability of MECHANIZED troops
	id = 9500512
	random = no
	country = GER
	
	trigger = {
		ai = yes
		OR = {  # Barbarossa AI file events
			event = 9500511
			event = 10002
			event = 10003
		}		
		technology = 11307	#Mechanized HQs
	}

	name = AI_EVENT 
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1940 } 
	offset = 15
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = ai which = "core_GER_Hanomags.ai" }
	}
	
}

event = {		
	id = 9500513
	random = no
	country = GER
	
	trigger = {
		ai = yes
		technology = 11501	#Task Force Offensive Organization
	}

	name = AI_EVENT 
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1942 } 
	offset = 30
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = ai which = "core_GER_Research.ai" }
	}
	
}





event = {		
	id = 9500516
	random = no
	country = GER

	trigger = {
		ai = yes
		event = 10001	#GER_BoB.ai
		OR = {
			exists = VIC
			AND = {
				NOT = { control = { province = 944 data = FRA }	}  #Toulouse
				NOT = { control = { province = 929 data = FRA }	}  #Marseilles
				NOT = { control = { province = 538 data = FRA }	}  #Brest
			}
		}	
		OR = {
			war = { country = NOR country = GER }
			war = { country = SWE country = GER }
		}
		NOT = { 
			war = { country = SOV country = GER } 
			war = { country = SPR country = GER }
		}
	}

	name = AI_EVENT 
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 } 
	offset = 10
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = ai which = core_GER_Oslo.ai }
		command = { type = add_division which = transports }
		command = { type = add_division which = transports }
		command = { type = add_division which = transports }
		command = { type = add_division which = transports }
		command = { type = add_division which = transports }
	}
}

event = {		
	id = 9500517
	random = no
	country = GER

	trigger = {
		ai = yes
		event = 9500516   #GER_Oslo.ai
		OR = {
			NOT = { exists = NOR }
			AND = {
				control = { province = 664 data = GER }	#Oslo
				control = { province = 662 data = GER } #Stavanger
				control = { province = 663 data = GER } #Kristiansand
			}
		}
		NOT = { 
			war = { country = SOV country = GER } 
			war = { country = SPR country = GER }
		}
	}

	name = AI_EVENT 
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 } 
	offset = 10
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = ai which = core_GER_BoB.ai }
	}
}

event = {		
	id = 9500518
	random = no
	country = GER

	trigger = {
		ai = yes
		event = 9500806 #SPR govt alignment check
		NOT = { 
			war = { country = YUG country = GER }
			war = { country = SOV country = GER }
			alliance = { country = SOV country = SPR }
		}
	}

	name = AI_EVENT 
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 } 
	offset = 10
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = ai which = core_GER_Madrid.ai }
		command = { type = addcore which = 945 } #Montpelier (Vichy territory on Spanish border)
		command = { type = addcore which = 951 } #Tarbes (Vichy territory on Spanish border)
		command = { type = trigger which = 9500807 } # Vichy cedes territory
	}
	action_b = {
		command = { type = sleepevent which = 9500519 } #no invasion
	}
}

event = {		
	id = 9500519
	random = no
	country = GER

	trigger = {
		random = 20
		ai = yes
		event = 9500806 #SPR govt alignment check
		event = 9500518 #GER_Madrid.ai
		NOT = { 
			war = { country = YUG country = GER }
			war = { country = SOV country = GER }
			alliance = { country = SOV country = SPR }
		}
	}

	name = AI_EVENT 
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 } 
	offset = 10
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = war which = SPR }
		command = { type = ai which = core_GER_Conquistador.ai }
	}
}

#*********************************************************************************************
# German convoy to Oslo or Stavanger during invasion
#*********************************************************************************************

event = {		
	id = 9000307
	random = no
	country = GER

	trigger = {
		ai = yes
		war = { country = GER country = NOR }
		control = { province = 664 data = GER }
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 } 
	offset = 10
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = convoy which = 587 value = 664 when = 17 } #Lbeck to Oslo; oil/supplies
	}
}

event = {		
	id = 9000308
	random = no
	country = GER

	trigger = {
		ai = yes
		war = { country = GER country = NOR }
		control = { province = 662 data = GER }
		NOT = { control = { province = 664 data = GER } }
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 } 
	offset = 10
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = convoy which = 587 value = 662 when = 17 } #Lbeck to Stavanger; oil/supplies
	}
}

#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# CHINESE STRATEGY CHANGES >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

event = {
	id = 9500600
	random = no 
	country = CHI

	trigger = {
		ai = yes
		atwar = yes
		NOT = { control = { province = 1698 data = CHI }  }	#Shanghai
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		command = { type = ai which = "core_CHI_Shanghai.ai" }
	}
}

event = {
	id = 9500601
	random = no 
	country = CHI

	trigger = {
		ai = yes
		atwar = yes
		alliance = { country = CHI country = USA }
		alliance = { country = ENG country = USA }
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		command = { type = ai which = "core_CHI_Allied.ai" }
	}
}


#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# MINORS STRATEGY CHANGES >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

event = {
	id = 9500800
	random = no
	country = CRO

	# Croatia joins the Allies
	
	trigger = {
		Alliance = { Country = ENG country = CRO }
	}

	name = AI_EVENT
	desc = ""
	style = 0
	
	date = { day = 1 month = october year = 1936 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		command = { type = ai which = core_BKN_Allied.ai }
	}
}

event = {
	id = 9500801
	random = no
	country = CRO

	# Croatia joins the Cominterm
	
	trigger = {
		alliance = { Country = SOV country = CRO }
	}

	name = AI_EVENT
	desc = ""
	style = 0
	
	date = { day = 1 month = october year = 1936 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		command = { type = ai which = core_BKN_Allied.ai }
	}
}

event = {
	id = 9500802
	random = no
	country = CRO

	# Croatia joins the Axis
	
	trigger = {
		alliance = { Country = GER country = CRO }
	}

	name = AI_EVENT
	desc = ""
	style = 0
	
	date = { day = 1 month = october year = 1936 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		command = { type = ai which = core_BKN_Axis.ai }
	}
}

event = {
	id = 9500803
	random = no
	country = SER

	# Serbia joins the Allies
	
	trigger = {
		alliance = { Country = ENG country = SER }
	}

	name = AI_EVENT
	desc = ""
	style = 0
	
	date = { day = 1 month = october year = 1936 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		command = { type = ai which = core_BKN_Allied.ai }
	}
}

event = {
	id = 9500804
	random = no
	country = SER

	# Serbia joins the Cominterm
	
	trigger = {
		alliance = { Country = SOV country = SER }
	}

	name = AI_EVENT
	desc = ""
	style = 0
	
	date = { day = 1 month = october year = 1936 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		command = { type = ai which = core_BKN_Allied.ai }
	}
}

event = {
	id = 9500805
	random = no
	country = SER

	# Serbia joins the Axis
	
	trigger = {
		alliance = { Country = GER country = SER }
	}

	name = AI_EVENT
	desc = ""
	style = 0
	
	date = { day = 1 month = october year = 1936 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		command = { type = ai which = core_BKN_Axis.ai }
	}
}

event = {
	id = 9500806
	random = no
	country = SPR

	trigger = {
		event = 10001	#GER_BoB.ai
		event = 802002  #SPR victory
		alignment = communist
		OR = {
			NOT = { exists = NOR }
			alliance = { country = NOR country = GER }
			NOT = { exists = ENG }
			AND = {
				control = { province = 664 data = GER }	#Oslo
				control = { province = 662 data = GER } #Stavanger
				control = { province = 663 data = GER } #Kristiansand
			}
		}
	}

	name = AI_EVENT
	desc = ""
	style = 0
	
	date = { day = 1 month = october year = 1936 }
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		command = { type = dissent value = -2 }
		command = { type = alignment which = fascist value = -50 }
	}
}

event = {
	id = 9500807
	random = no
	country = VIC

	# Triggered by German event 9500518

	name = AI_EVENT
	desc = ""
	style = 0

	action_a = {
		command = { type = secedeprovince which = GER value = 945 } #Montpelier (Vichy territory on Spanish border)
		command = { type = secedeprovince which = GER value = 951 } #Tarbes (Vichy territory on Spanish border)
	}
}



#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# AMERICAN STRATEGY CHANGES >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

event = {
	id = 9500700
	random = no 
	country = USA

	trigger = {
		ai = yes
		war = { country = GER country = USA }
		war = { country = GER country = ENG }
		NOT = {
			war = { country = ENG country = USA }
			alliance = { country = ENG country = USA }
		}
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		command = { type = alliance which = ENG }
	}
}


#######

############################################################################################
# GERMANY STRATEGY CHANGES (10001-10005)
############################################################################################

event = {
	id = 10001
	random = no
	country = GER

	# Battle of Britain
	
	trigger = {
		ai = yes     
		war = { country = GER country = ENG }
		control = { province = 527 data = GER } # Germany controls Paris
		control = { province = 643 data = GER } # Germany controls Warszawa
		NOT = {
			war = { country = GER country = SOV }
		}
	}

	name = AI_EVENT
	desc = ""
	style = 0
	
	date = { day = 1 month = september year = 1936 }
	offset = 15 # Check for trigger conditions every 15 days
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		command = { type = ai which = core_GER_BoB.ai }
		command = { type = build_division which = transports }
		command = { type = build_division which = transports }
	}
}
		
event = {
	id = 10002
	random = no 
	country = GER

	# Operation Barbarossa: England still fighting
	
	trigger = {
		random = 10 # Germany should not automatically switch strategy at this point 
		war = { country = GER country = ENG }
		ai = yes
		control = { province = 527 data = GER } # Germany controls Paris
		control = { province = 643 data = GER } # Germany controls Warszawa
		exists = SOV
		NOT = {
			alliance = { country = SOV country = GER } # Not when Unholy Allianced
			AND = {
				war = { country = NOR country = GER }
				control = { province = 664 data = NOR }	#Oslo
				control = { province = 662 data = NOR } #Stavanger
				control = { province = 663 data = NOR } #Kristiansand
			}
		}
	}

	name = AI_EVENT
	desc = ""
	style = 0	
	
	date = { day = 1 month = september year = 1940 }
	offset = 30 # Check for trigger conditions every 15 days
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		command = { type = ai which = core_GER_Barbarossa.ai }
		command = { type = sleepevent which = 10003 }   # other Barbarossa load
		command = { type = sleepevent which = 9500511 } # other Barbarossa load
	}

}

event = {
	id = 10003
	random = no 
	country = GER

	# Operation Barbarossa: England is defeated -or- USSR DoW Germany (most likely)

	trigger = {
		ai = yes
		control = { province = 527 data = GER } # Germany controls Paris
		control = { province = 643 data = GER } # Germany controls Warszawa
		OR = {
			war = { country = GER country = SOV }
			OR = {
				control = { province = 499 data = GER } # Germany controls London
				control = { province = 499 data = ITA } # Italy controls London
			}	
		}
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 15 # Check for trigger conditions every 15 days
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		command = { type = ai which = core_GER_Barbarossa.ai }
		command = { type = sleepevent which = 10002 }   # other Barbarossa load
		command = { type = sleepevent which = 9500511 } # other Barbarossa load (PhilK_AI.txt)
	}
}	

event = {
	id = 10004
	random = no
	country = GER

	# Operation Sealion: USSR Defeated

	trigger = {
		ai = yes
		OR = {
			event = 5308 # USSR - The Bitter Peace
			event = 5309 # USSR - The Bitter Peace
			event = 5315 # Victory in the East
			event = 5334 # Victory in the East
			NOT = { exists = SOV }
		}
	}
	
	name = AI_EVENT
	desc = ""
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 15 # Check for trigger conditions every 15 days
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		command = { type = ai which = core_GER_LateSealion.ai }
	}
}

event = {
	id = 10005
	random = no
	country = GER

	# Germany goes on the defensive

	trigger = {
		ai = yes
		war = { country = USA country = GER } # The mighty US has entered the war
		war = { country = SOV country = GER }
		#If Germany has still a comfortable position on the continent, then nopes
		NOT = {
			control = { province = 527 data = GER } # Germany controls Paris 
			control = { province = 643 data = GER } # Germany controls Warszawa
		}

	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 15 # Check for trigger conditions every 15 days
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		command = { type = ai which = core_GER_FinalDefense.ai }
	}
}


##########################################
# 432006 - France intervenes in Syria-Lebanon dispute (ahistorical) (by OHGamer)
# This event has been written expressly for the purpose of the CORE mod for Hearts of Iron, 
# use of this event outside the CORE mod without written permission 
# of the author or the author's designated representative is prohibited
##########################################
event = { 
	id = 432006
	random = no 
	country = FRA 

	name = CEVTNAME_432006
	desc = CEVTDESC_432006
	style = 0

	trigger = {
		exists = SYR
	NOT = {
		exists = LEB
		exists = VIC #should not fire if Vichy Syria annexes Lebanon during the war
		}
	}

	date = { day = 5 month = january year = 1936 }
	offset = 7
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = CEVTACTA_432006
		command = { type = trigger which = 902077 }
	}

	action_a = {
		name = CEVTACTB_432006
		command = { type = dissent value = 2 } #The Right would have had fits if France backed down to the Syrian nationalists
	}

}

##########################################
# 902077 - France intervenes in Syria-Lebanon dispute (ahistorical) (by OHGamer)
# This event has been written expressly for the purpose of the CORE mod for Hearts of Iron, 
# use of this event outside the CORE mod without written permission 
# of the author or the author's designated representative is prohibited.
##########################################
event = { 
	id = 902077
	random = no 
	country = SYR 

	name = CEVTNAME_902077
	desc = CEVTDESC_902077
	style = 0

	#Triggered by FRA432006

	action_a = {
		name = CEVTACTA_902077
		command = { type = independence which = LEB value = 0 }
		command = { type = dissent value = 20 } #Nationalists would have regarded this as a betrayal of national goals
	}

	action_b = {
		name = CEVTACTB_902077
		command = { type = war which = FRA }
		command = { type = dissent value = -30 } #Rally nationalist sentiment against the French
	}
}

##############################################
# Aggressive Poland - Early Franco-German war
###############################################

event = {
	id = 9000200
	random = no
	country = POL
	
	trigger = {
		war = { country = GER country = FRA }
			NOT = {
				AND = { #'AND' functions as 'OR' here
				alliance = { country = GER country = POL }
				alliance = { country = SOV country = POL }
				alliance = { country = GER country = SOV }
				atwar = yes
			}
		}
	}

	name = CEVTNAME_9000200
	desc = CEVTDESC_9000200
	style = 0

	date = { day = 3 month = january year = 1936 } 
	offset = 16
	deathdate = { day = 1 month = january year = 1938 }

	action_a = {
		name = CEVTACTA_9000200
		command = { type = addcore which = 636 }
		command = { type = addcore which = 646 }
		command = { type = trigger which = 702099 } # Poland mobilizes
		command = { type = sleepevent which = 9000202 }
	}
	action_b = {
		name = CEVTACTB_9000200
		command = { type = addcore which = 636 }
		command = { type = addcore which = 646 }
		command = { type = addcore which = 650 }
		command = { type = trigger which = 702099 } # Poland mobilizes
		command = { type = sleepevent which = 9000201 }
	}
	action_c = {
		name = CEVTACTC_9000200
		command = { type = addcore which = 636 }
		command = { type = addcore which = 646 }
		command = { type = addcore which = 650 }
		command = { type = trigger which = 702099 } # Poland mobilizes
		command = { type = sleepevent which = 9000201 }
		command = { type = sleepevent which = 9000202 }
		command = { type = war which = GER }
	}
	action_d = {
		name = CEVTACTD_9000200
		command = { type = sleepevent which = 9000201 }
		command = { type = sleepevent which = 9000202 }
	}
}

event = {
	id = 9000201
	random = no
	country = GER
	
	trigger = {
		war = { country = GER country = FRA }
		event = 9000200
	}

	name = CEVTNAME_9000201
	desc = CEVTDESC_9000201
	style = 0
	
	date = { day = 5 month = january year = 1936 } 
	offset = 4
	deathdate = { day = 1 month = january year = 1938 }

	action_a = {
		name = CEVTACTA_9000201
		command = {  }
	}
	action_b = {
		name = CEVTACTB_9000201
		command = { type = dissent value = 8 } # Serious dissent hit
		command = { type = secedeprovince which = POL value = 636 }
		command = { type = secedeprovince which = POL value = 646 }
		command = { type = sleepevent which = 9000203 }
	}
}

event = {
	id = 9000202
	random = no
	country = GER
	
	trigger = {
		war = { country = GER country = FRA }
		event = 9000200
	}

	name = CEVTNAME_9000202
	desc = CEVTDESC_9000202
	style = 0

	date = { day = 8 month = january year = 1936 } 
	offset = 6
	deathdate = { day = 1 month = january year = 1938 }

	action_a = {
		name = CEVTACTA_9000202
		command = {  }
	}
	action_b = {
		name = CEVTACTB_9000202
		command = { type = dissent value = 20 } # Serious dissent hit
		command = { type = secedeprovince which = POL value = 636 }
		command = { type = secedeprovince which = POL value = 646 }
		command = { type = secedeprovince which = POL value = 650 }
		command = { type = sleepevent which = 9000203 }
		
	}
}

event = {
	id = 9000203
	random = no
	country = POL
	
	trigger = {
		war = { country = GER country = FRA }
		OR = {
			event = 9000201
			event = 9000202
		}
	}

	name = CEVTNAME_9000203
	desc = CEVTDESC_9000203
	style = 0

	date = { day = 9 month = january year = 1936 } 
	offset = 5
	deathdate = { day = 1 month = january year = 1938 }

	action_a = {
		name = CEVTACTA_9000203
		command = { type = dissent value = -5 } # Support from the citizens
		command = { type = war which = GER }
		command = { type = warentry which = ENG value = -3 }
		command = { type = warentry which = USA value = -6 }
	}
	action_b = {
		name = CEVTACTB_9000203
		command = { type = dissent value = 3 } # Nationalists not happy
	}
}

#########################################
# German access to Finland
#########################################

event = {
	id = 9000550
	random = no
	country = FIN
	
	trigger = {
		ai = yes
		OR = {
			alliance = { country = GER country = FIN }
			puppet = { country = FIN country = GER }
		}
	}

	name = AI_EVENT
	desc = ""
	style = 0

	date = { day = 1 month = january year = 1936 } 
	offset = 30
	deathdate = { day = 1 month = january year = 1949 }

	action_a = {
		command = { type = access which = GER }
	}
}


###

#####################################################
# The President appoints an Uranium Committee
# by Kevin Mc Carthy
# Source http://www.dannen.com/ae-fdr.html
#####################################################

event = { 
	id = 322377
	random = no
	country = USA

	trigger = {
		event = 322240
		government = democratic
		}

	name = CEVTNAME_322377
	desc = CEVTDESC_322377
	style = 0

	date = { day = 10 month = october year = 1939 }

	action_a = {
		name = CEVTACTA_322377
		command = { }
		}
}
###########################################
# Squalus Sinks
# by Kevin Mc Carthy
# Source http://www.onr.navy.mil/focus/blowballast/squalus/sinking1.htm
###########################################

event = { 
	id = 322375
	random = no 
	country = USA

	trigger = {
		government = democratic
		atwar = no
	}

	name = CEVTNAME_322375
	desc = CEVTDESC_322375
	style = 0

	date = { day = 22 month = May year = 1939 }

	action_a = {
		name = CEVTACTA_322375
		command = { type = dissent value = 1 }
	}

}


###########################################
# USS Squalus Survivors Rescued
# by Mc Carthy
# Source http://www.onr.navy.mil/focus/blowballast/squalus/sinking1.htm
###########################################

event = { 
	id = 322376
	random = no 
	country = USA

	trigger = {
		event = 322375
	}

	name = CEVTNAME_322376
	desc = CEVTDESC_322376
	style = 0

	date = { day = 24 month = May year = 1939 }


	action_a = {
		name = CEVTACTA_322376
		command = { type = dissent value = -1 }
	}
}


